package cn.jyc.ssm03.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Log {
    private Integer lid;
    private String name;
    private String ip;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date date;
    private String reqmethd;
    private String reqparams;

    public Log() {
    }

    public Log(Integer lid, String name, String ip, Date date, String reqmethd, String reqparams) {
        this.lid = lid;
        this.name = name;
        this.ip = ip;
        this.date = date;
        this.reqmethd = reqmethd;
        this.reqparams = reqparams;
    }

    public Log(String name, String ip, Date date, String reqmethd, String reqparams) {
        this.name = name;
        this.ip = ip;
        this.date = date;
        this.reqmethd = reqmethd;
        this.reqparams = reqparams;
    }

    @Override
    public String toString() {
        return "Log{" +
                "lid=" + lid +
                ", name='" + name + '\'' +
                ", ip='" + ip + '\'' +
                ", date=" + date +
                ", reqmethd='" + reqmethd + '\'' +
                ", reqparams='" + reqparams + '\'' +
                '}';
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getReqmethd() {
        return reqmethd;
    }

    public void setReqmethd(String reqmethd) {
        this.reqmethd = reqmethd;
    }

    public String getReqparams() {
        return reqparams;
    }

    public void setReqparams(String reqparams) {
        this.reqparams = reqparams;
    }
}

